﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using saveimagetodatabase;
using System.Data;
namespace WcfServiceLibrary2
{
    [DataContract]
   public class Tuoi
    {
        [DataMember]
        public int Id{get;set;}
        [DataMember]
        public int Tuois { get; set; }
        public Tuoi(DataRow row)
        {
           this.Id=int.Parse(row["id"].ToString());
            this.Tuois=row.IsNull("tuoi")?int.MinValue:int.Parse(row["tuoi"].ToString());
        }
        //public static TuoiGetAll()
        //{
        //   SqlQuery sql=new SqlQuery();
        //}
    }
}
